import App from './App'
Vue.config.productionTip = false


import Vue from 'vue'
import $pub from 'utils/pub.js'
Vue.prototype.$pub = $pub;

/* uview */
import ws from '@/utils/ws.js'
import env from '@/utils/env.js'

// main.js
import uView from '@/uni_modules/uview-ui'

// 1. 导入 store 的实例对象
import store from './store/store.js'


import {
  request
} from '@/utils/request1.js'


import viewNavbar from '@/components/navBar.vue';
import card from '@/components/card/card.vue';
import { v4 as uuidv4 } from 'uuid';




import * as API from '@/api/index.js'



Vue.component('view-navbar', viewNavbar); // 注册组件
Vue.component('card', card); // 注册组件


Vue.prototype.request = request
Vue.prototype.$API = API
Vue.prototype.$ws = ws;
Vue.prototype.$uuid = uuidv4;

Vue.prototype.$url = env.baseUrl;


Vue.use(uView)



App.mpType = 'app'
const app = new Vue({
  store,
  ...App
})
app.$mount()








